package com.zero.ooday03;

public abstract class DaNeiEmployee extends Person{
    private double salary;

    public DaNeiEmployee(double salary) {
        this.salary = salary;
    }

    public DaNeiEmployee(String name, String age, double salary) {
        super(name, age);
        this.salary = salary;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }
    public void goToWork(){
        System.out.println("上班打卡");
    }
    public void goOffWork(){
        System.out.println("下班打卡");
    }

    public abstract void finishWork();
}
